function loginAuth(OriginCpn) {
  return (props) => {
    const token = localStorage.getItem('token')
    if (token) {
      return <OriginCpn {...props} />
    } else {
      return <h2>请先登录，在跳转到对应的页面中</h2>
    }
  }
}

export default loginAuth
